package cn.ac.siom.query.service.impl;

import cn.ac.siom.query.dao.IItem_infoDAO;
import cn.ac.siom.query.service.IItem_infoService;
import cn.ac.siom.query.vo.Item_info;


import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.sql.SQLException;
import java.util.List;

@Service
public class Item_infoServiceImpl implements IItem_infoService {


    @Resource
    private IItem_infoDAO item_infoDAO;


    @Override
    public List<Item_info> list() throws SQLException {
        return this.item_infoDAO.findAll();
    }

    @Override
    public List<Item_info> list_NO(Integer i_id) throws SQLException {
        List<Item_info> item_info=this.item_infoDAO.findNo(i_id);
        return item_info;
    }
}
